Salesforce: How To Avoid Soql Inside For Loop In Apex Class